package com.source.hotelbath.weight.listview.ptr.ptr;

import android.view.View;

import com.source.hotelbath.weight.listview.ptr.PtrHeaderBase;


/**
 * Created by kinglong on 15-6-3.
 */
public interface PtrBaseInterface<T extends View> {

    /**
     * @param view
     */
    public void setEmptyView(View view);
    public void setEmptyView(int id);
    public View getEmptyView();

    public void setRefreshView(T view);
    public T getRefreshView();
    public <K extends PtrHeaderBase>void setHeader(K header);

    public void autoRefresh();

    public void refreshSuccess();
    public void refreshFailure();             //刷新失败不显示emptyview
    public void refreshFailure(boolean value);       //是否显示emptyview

    public void showEmptyView();
    public void showContentView();

    /**
     * 下拉刷新如果和有水平滑动的view配合使用需要设置为true
     * 下拉控件中默认是false
     */
    public void disableWhenHorizontalMove(boolean value);
}
